﻿<?php
$servername='localhost';
$user_name='root';
$password='root';
$db_name='test';
$conn=new mysqli($servername,$user_name,$password,$db_name);
if($conn->connect_error){
	die('mysqli connect fail'.$conn->connect_error);
}
$stmt=$conn->prepare("insert into test_user_info (`user_id`,`age`,`tel`) values (?,?,?)");
$stmt->bind_param('iss',$user_id,$age,$tel);
$user_id=3;
$age=26;
$tel='13589255519';
$res=$stmt->execute();
var_dump($res);
$user_id=4;
$age=16;
$tel='13589266619';
$res=$stmt->execute();
var_dump($res);
$user_id=5;
$age=36;
$tel='135892333919';
$res=$stmt->execute();
var_dump($res);
$stmt->close();